const setToken = (token) => {
  localStorage.setItem('userToken', JSON.stringify(token))
}

const removeToken = () => {
  localStorage.removeItem('userToken')
}
const getToken = () => {
  return JSON.parse(localStorage.getItem('userToken'))
}

export {
  setToken, removeToken, getToken
}